package com.asset.salesforce.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.ActionSelectedValueDaoImpl;
import com.asset.salesforce.domain.ActionSelectedValue;

@Service
@Transactional(readOnly=true)
public class ActionSelectedValueService {

	@Autowired
	private ActionSelectedValueDaoImpl actionSelectedValueDaoImpl;
	
	@Transactional(readOnly = false)
	public void addActionSelectedValue(ActionSelectedValue actionSelectedValue){
		actionSelectedValueDaoImpl.add(actionSelectedValue);
	}
	@Transactional(readOnly = true)
	public ActionSelectedValue getActionSelectedValueById(ActionSelectedValue actionSelectedValue,Integer id){
		return actionSelectedValueDaoImpl.getById(id,actionSelectedValue);
	}
	@Transactional(readOnly = true)
	public List<ActionSelectedValue> getActionSelectedValues(ActionSelectedValue actionSelectedValue){
		return actionSelectedValueDaoImpl.getAll(actionSelectedValue);
	}
}
